<html>
  <head>
  <title>listcomp2.py</title>
  </head>
  <body>
  <h3>listcomp2.py</h3>
  <hr>
  <pre>
strings <span style="font-weight: bold">= [</span><span style="color: red">'Some string'</span><span style="font-weight: bold">,</span><span style="color: red">'Art'</span><span style="font-weight: bold">,</span><span style="color: red">'Music'</span><span style="font-weight: bold">,</span><span style="color: red">'Artificial Intelligence'</span><span style="font-weight: bold">]
</span><span style="color: blue; font-weight: bold">print </span><span style="font-weight: bold">[</span>x<span style="font-weight: bold">.</span>lower<span style="font-weight: bold">() </span><span style="color: blue; font-weight: bold">for </span>x <span style="color: blue; font-weight: bold">in </span>strings <span style="color: blue; font-weight: bold">if </span>len<span style="font-weight: bold">(</span>x<span style="font-weight: bold">) &gt; </span><span style="color: red">5</span><span style="font-weight: bold">]</span>
  </pre>
  </body>
  </html>
  